package com.antball.aaa.command_responsibilitychain_design.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther: huangsj
 * @Date: 2019/8/7 10:56
 * @Description:
 */
public enum CommandEnum {
    ls("com.antball.aaa.design.LsCommand");

    private String value = "";
    private CommandEnum(String value){
        this.value=value;
    }

    public String getValue() {
        return value;
    }

    public static List<String> getNames(){
        CommandEnum[] commandEnums= CommandEnum.values();

        List<String> names = new ArrayList<String>();
        for(CommandEnum c:commandEnums){
            names.add(c.name());
        }

        return names;
    }
}
